package com.iLoo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iLoo.cache.RedisCache;
import com.iLoo.entity.User;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;

@Mapper  //用来创建DAO对象
@CacheNamespace(implementation = RedisCache.class)
public interface UserMapper extends BaseMapper<User> {

    void save(User user);

    User findByUserName(String username);
}
